import { apiFox } from "@/request/teachers";

// 获取代表团的树形数据
export const getContingentTree = () => {
  return apiFox({ url: "/contingentTree", method: "get" });
};
// 获取机构的人员
export const getSessionUser = (page: number, size: number) => {
  return apiFox({
    url: "/getSessionUser",
    method: "get",
    params: { page, size },
  });
};
// 获取代表团的人员
export const getRepresentativeUser = (id: string, page = 1, size = 10) => {
  return apiFox({
    url: "/representativeUser",
    method: "get",
    params: { id, page, size },
  });
};
// 获取代表团的人员
export const administer = (id: string, page = 1, size = 10) => {
  return apiFox({
    url: "/administer",
    method: "get",
    params: { id, page, size },
  });
};

